import { App } from "vue";
import {
  Button,
  Icon,
  Form,
  Field,
  CellGroup,
  Tabbar,
  TabbarItem,
  Cell,
  Switch,
  Popup,
  NavBar,
  Tag,
  RadioGroup,
  Radio,
  Search,
  Image as VanImage,
  Uploader,
  Tab,
  Tabs,
  Popover,
  Badge,
  Swipe,
  SwipeItem,
} from "vant";
export function registerVantComponent(App: App): void {
  [
    Button,
    Icon,
    Form,
    Field,
    CellGroup,
    Tabbar,
    TabbarItem,
    Cell,
    Switch,
    Popup,
    NavBar,
    Tag,
    RadioGroup,
    Radio,
    Search,
    VanImage,
    Uploader,
    Tab,
    Tabs,
    Popover,
    Badge,
    Swipe,
    SwipeItem,
  ].forEach((item) => {
    App.use(item);
  });
}
